package com.verify.emun;

public enum STANDARDT_POST_LEVEL {
    SPECIALIST("特级技师", "一线生产操作类"),
    SENIOR_TECHNICIAN("高级技师", "一线生产操作类"),
    TECHNICIAN("技师", "一线生产操作类"),
    SENIOR_WORKER("高级工", "一线生产操作类"),
    INTERMEDIATE_WORKER("中级工", "一线生产操作类"),
    JUNIOR_WORKER("初级工", "一线生产操作类"),
    NO_LEVEL("无等级", "一线生产操作类"),
    NONE("无", "辅助与服务类"),
    UNIT_HEAD_MAIN_POSITION("单位负责人正职", "管理类"),
    UNIT_HEAD_DEPUTY_POSITION("单位负责人副职", "管理类"),
    UNIT_THREE_CHIEF_ENGINEER("单位三总师", "管理类"),
    DEPARTMENT_HEAD_MAIN_POSITION("部门负责人正职", "管理类"),
    DEPARTMENT_HEAD_DEPUTY_POSITION("部门负责人副职", "管理类"),
    DEPARTMENT_ASSISTANT("部门助理", "管理类"),
    DEPARTMENT_INTERNAL_ORG_HEAD_MAIN_POSITION("部门内设机构正职", "管理类"),
    DEPARTMENT_INTERNAL_ORG_HEAD_DEPUTY_POSITION("部门内设机构副职", "管理类"),
    LEVEL_ONE_MANAGEMENT("一级管理", "管理类"),
    LEVEL_TWO_MANAGEMENT("二级管理", "管理类"),
    LEVEL_THREE_MANAGEMENT("三级管理", "管理类"),

    LEVEL_ONE_PROFESSIONAL_TECHNICAL("一级专业技术", "专业技术类"),
    LEVEL_TWO_PROFESSIONAL_TECHNICAL("二级专业技术", "专业技术类"),
    LEVEL_THREE_PROFESSIONAL_TECHNICAL("三级专业技术", "专业技术类"),
    LEVEL_FOUR_PROFESSIONAL_TECHNICAL("四级专业技术", "专业技术类"),
    LEVEL_FIVE_PROFESSIONAL_TECHNICAL("五级专业技术", "专业技术类"),
    LEVEL_SIX_PROFESSIONAL_TECHNICAL("六级专业技术", "专业技术类"),
    LEVEL_SEVEN_PROFESSIONAL_TECHNICAL("七级专业技术", "专业技术类"),

    LEVEL_FIVE_PROFESSIONAL_N("部门助理", "专业技术类"),
    LEVEL_SIX_PROFESSIONAL_N("部门内设机构正职", "专业技术类"),
    LEVEL_SEVEN_PROFESSIONAL_N("部门内设机构副职", "专业技术类"),

    LEVEL_FIVE_PROFESSIONAL_X("部门助理", "专业销售类"),
    LEVEL_SIX_PROFESSIONAL_X("部门内设机构正职", "专业销售类"),
    LEVEL_SEVEN_PROFESSIONAL_X("部门内设机构副职", "专业销售类"),

    LEVEL_ONE_PROFESSIONAL_SALE("一级专业技术", "专业销售类"),
    LEVEL_TWO_PROFESSIONAL_SALE("二级专业技术", "专业销售类"),
    LEVEL_THREE_PROFESSIONAL_SALE("三级专业技术", "专业销售类"),
    LEVEL_FOUR_PROFESSIONAL_SALE("四级专业技术", "专业销售类"),
    LEVEL_FIVE_PROFESSIONAL_SALE("五级专业技术", "专业销售类"),
    LEVEL_SIX_PROFESSIONAL_SALE("六级专业技术", "专业销售类"),
    LEVEL_SEVEN_PROFESSIONAL_SALE("七级专业技术", "专业销售类");

    private final String name;
    private final String type;

    // 构造方法，用于初始化name和type属性
    STANDARDT_POST_LEVEL(String name, String type) {
        this.name = name;
        this.type = type;
    }

    // 获取name属性的值
    public String getName() {
        return name;
    }

    // 获取type属性的值
    public String getType() {
        return type;
    }

    public static boolean isMatch(String name, String type) {
        for (STANDARDT_POST_LEVEL level : STANDARDT_POST_LEVEL.values()) {
            if (level.getName().equals(name) && level.getType().equals(type)) {
                return true;
            }
        }
        return false; // 如果没有找到匹配项，返回false
    }

    public static boolean isMatch(String name) {
        for (STANDARDT_POST_LEVEL level : STANDARDT_POST_LEVEL.values()) {
            if (level.getName().equals(name)) {
                return true;
            }
        }
        return false; // 如果没有找到匹配项，返回false
    }
}
